@extends('admin.layout')
@section('content')
@section('title',$title)
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                {{$title}}
                <small>更快的管理您的商品详情信息
                    @if(session('info'))
                        <span id="info" class="text-red">{{session('info')}}</span>
                    @endif
                </small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{url('/admin/index')}}"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="{{url('/admin/category/create')}}"></a></li>
                <li class="active">商品详情</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">快速查看商品详情</h3>
                        </div><!-- /.box-header -->
                        <div class="box-body" style="text-align:center;font-size:30px;">
                               
                                <tr>
                                {{$data['name']}}
                                </tr> 
                                <a href="{{ url('admin/goods/goodsEditinfo') }}/{{ $id }}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修改商品详情</a>
                                <form id="delForm" action="" method="post">
                                       {{ method_field('DELETE')}} 
                                       {{ csrf_field()}}
                                </form>
            
                        </div><!-- /.box-body -->
                        
                        <div style="text-align:center">
                            {!!$data['text']!!}
                        </div>
                         
                          
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

    //点击修改信息
    <script>

        window.onload = function()
        {         

            $('#info').fadeOut(1000);  
        }

    </script>
@endsection